// 用户相关的请求
import http from "../request";

// 更新用户信息
export function putUserInfoApi(id,data){
  return http({
    method:"PUT",
    url:`/api/shop/user/${id}`,
    data
  })
}

// 登陆
export function login(data){
  return http({
    method:"POST",
    url:"/api/shop/login",
    data
  })
}

// 注册
export function register(data){
  return http({
    method:"POST",
    url:"/api/shop/register",
    data
  })
}